/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.devmng.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;

/**
 * 任务执行记录Entity
 *
 * @author panda
 * @version 2017-12-08
 */
public class TaskExecRecord extends DataEntity<TaskExecRecord> {

    private static final long serialVersionUID = 1L;
    private String taskMainId;        // 任务ID
    private String deviceMainId;        // 设备ID
    private String devchkItemId;        // 设备检修项ID
    private String devchkAnswerId;        // 设备检修回答ID
    private String devchkAnswerItemId;        // 设备检修回答项ID
    private String textContent;        // 文本回答内容
    private BigDecimal numContent;        // 数字回答内容

    public TaskExecRecord() {
        super();
    }

    public TaskExecRecord(String id) {
        super(id);
    }

    @Length(min = 0, max = 64, message = "任务ID长度必须介于 0 和 64 之间")
    public String getTaskMainId() {
        return taskMainId;
    }

    public void setTaskMainId(String taskMainId) {
        this.taskMainId = taskMainId;
    }

    @Length(min = 0, max = 64, message = "设备ID长度必须介于 0 和 64 之间")
    public String getDeviceMainId() {
        return deviceMainId;
    }

    public void setDeviceMainId(String deviceMainId) {
        this.deviceMainId = deviceMainId;
    }

    @Length(min = 0, max = 64, message = "设备检修项ID长度必须介于 0 和 64 之间")
    public String getDevchkItemId() {
        return devchkItemId;
    }

    public void setDevchkItemId(String devchkItemId) {
        this.devchkItemId = devchkItemId;
    }

    @Length(min = 0, max = 64, message = "设备检修回答ID长度必须介于 0 和 64 之间")
    public String getDevchkAnswerId() {
        return devchkAnswerId;
    }

    public void setDevchkAnswerId(String devchkAnswerId) {
        this.devchkAnswerId = devchkAnswerId;
    }

    @Length(min = 0, max = 64, message = "设备检修回答项ID长度必须介于 0 和 64 之间")
    public String getDevchkAnswerItemId() {
        return devchkAnswerItemId;
    }

    public void setDevchkAnswerItemId(String devchkAnswerItemId) {
        this.devchkAnswerItemId = devchkAnswerItemId;
    }

    @Length(min = 0, max = 255, message = "文本回答内容长度必须介于 0 和 255 之间")
    public String getTextContent() {
        return textContent;
    }

    public void setTextContent(String textContent) {
        this.textContent = textContent;
    }

    public BigDecimal getNumContent() {
        return numContent;
    }

    public void setNumContent(BigDecimal numContent) {
        this.numContent = numContent;
    }

}